<?php
declare (strict_types=1);

namespace app\user\logic\user;

use app\user\model\user\TicketCoupon as TicketCouponModel;

/**
 * 活动券逻辑层
 */
class TicketCoupon extends TicketCouponModel
{
    /**
     * 获取列表
     *
     * @param array $map
     * @return \think\Paginator
     * @throws \think\db\exception\DbException
     */
    public function getList(array $map = [])
    {
        return $this->scope('mhm')->where($map)->order('create_time', 'DESC')->paginate($this->getListRows());
    }
}
